package com.java.boot.controller;

import com.java.boot.service.HelloService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author jingjintao
 * @date 2021/8/1 - 18:23
 **/
@RestController
public class HelloController {

    @Autowired
    private HelloService helloService;
    @GetMapping("/hello")
    public String hello(){
        return helloService.sayHello("张三");
    }
}
